﻿namespace Cos.Module.Blog.NHibernate.Test
{
    using System;
    using System.Collections.Generic;

    using Cos.Core.NHibernate;
    using Cos.Core.NHibernate.Tests;

    using NUnit.Framework;

    [TestFixture]
    public class ArticleCultureDataModelFixture : BlogFixtureBase
    {
        [Test]
        public void CanMapArticleCultureDataModel()
        {
            new PersistenceSpecification<ArticleCultureDataModel>(Session)
                .CheckProperty(x => x.ArticleId, this.Article.Id)
                .CheckProperty(x => x.Author, "jaja")
                .CheckProperty(x => x.LastModified, new DateTime(2012, 01, 01))
                .CheckProperty(x => x.Title, "title test")
                .CheckProperty(x => x.Text, "text test")
                .CheckProperty(x => x.AuthorId, "123456")
                .CheckProperty(x => x.AuthorFirstName, "Bill")
                .CheckProperty(x => x.AuthorLastName, "Doe")
                .CheckProperty(x => x.CultureCode, "Fr-CA")
                .CheckProperty(x => x.Teaser, "teassss")
                .VerifyTheMappings();
        }
    }
}
